// pages/Route/route.js
Page({
  onLoad(options) {
    console.log(this.route); // pages/Route/route
  },
})

const currentPages = getCurrentPages();
console.log(currentPages); // [object]